﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="fanli_promotion.aspx.cs" Inherits="Web.myadmin.fanli_promotion" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head id="Head1" runat="server">
    <title>促销信息管理 - 后台管理 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script src="js/function.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
<div id="right">
<!-- 头部开始 -->
<div class="right-title">返利网管理后台>促销信息管理</div>
<div class="con-title">
    <img src="image/icon01.gif" width="23" height="26" style="padding:2px 0 0 15px; float:left" />
    <span class="con-txt">促销信息管理</span>
</div>
<!-- 头部开始 -->

<!-- 查询开始 -->
<div class="toptab" id="divQuery" runat="server">
<div class="tabcontent">
             <div class="span">id：</div><div class="span"><asp:TextBox ID="txtQryId" runat="server"  CssClass="clsInput" ></asp:TextBox></div>
             <div class="span">商城id：</div><div class="span"><asp:TextBox ID="txtQryShopid" runat="server"  CssClass="clsInput" ></asp:TextBox></div>
             <%--<div class="span">标题：</div><div class="span"><asp:TextBox ID="txtQryTitle" runat="server"  CssClass="clsInput" ></asp:TextBox></div>--%>
             <%--<div class="span">内容：</div><div class="span"><asp:TextBox ID="txtQryContent" runat="server"  CssClass="clsInput" ></asp:TextBox></div>--%>
             <%--<div class="span">过期日期：</div><div class="span"><asp:TextBox ID="txtQryExpiredDate" runat="server"  CssClass="clsInput" ></asp:TextBox></div>--%>
             <%--<div class="span">跳转链接：</div><div class="span"><asp:TextBox ID="txtQryGotoUrl" runat="server"  CssClass="clsInput" ></asp:TextBox></div>--%>
             <%--<div class="span">发布日期：</div><div class="span"><asp:TextBox ID="txtQryPubDate" runat="server"  CssClass="clsInput" ></asp:TextBox></div>--%>
             <%--<div class="span">发布人id：</div><div class="span"><asp:TextBox ID="txtQryAdminID" runat="server"  CssClass="clsInput" ></asp:TextBox></div>--%>
             <%--<div class="span">扩展1：</div><div class="span"><asp:TextBox ID="txtQryExt1" runat="server"  CssClass="clsInput" ></asp:TextBox></div>--%>
             <%--<div class="span">扩展2：</div><div class="span"><asp:TextBox ID="txtQryExt2" runat="server"  CssClass="clsInput" ></asp:TextBox></div>--%>
             <div class="span"><asp:Button ID="btnQuery"  CssClass="btnQuery" runat="server" Text=" 查询 "  OnClick="btnQuery_Click" /></div>
</div>
</div>
<!-- 查询结束 -->

<!-- 列表内容开始 -->
<div class="tab"  id="divList" runat="server">
<!-- 错误提示开始 -->
<div id="DivPromptMessage" runat="server">
    <asp:Literal ID="litPromptMessage" runat="server"></asp:Literal>
</div>
<!-- 错误提示结束 --> 

<!-- 信息列表开始 -->
     <asp:Repeater runat="server" ID="rptInfoList">
        <HeaderTemplate>
           <table  cellpadding="0" cellspacing="0" class="atab">
             <tr> 
	              <th>编号 </th>
	              <th>商城id</th>
	              <th>标题</th>
	              <th>内容</th>
	              <%--<th>过期日期</th>--%>
	              <%--<th>跳转链接</th>--%>
	              <%--<th>发布日期</th>--%>
	              <%--<th>发布人id</th>--%>
	              <%--<th>扩展1</th>--%>
	              <%--<th>扩展2</th>--%>
	              <th>操作</th>
             </tr>
          </HeaderTemplate>
          <ItemTemplate>
               <tr onmouseover="this.bgColor='#8CBDE7'" onmouseout="this.bgColor='#ffffff'"> 
	              <td><%# Eval("id") %></td>
	              <td><%# Eval("shopid")%></td>
	              <td><%# Eval("title")%></td>
	              <td><%# Eval("content")%></td>
	              <%--<td><%# Eval("expiredDate")%></td>--%>
	              <%--<td><%# Eval("gotoUrl")%></td>--%>
	              <%--<td><%# Eval("pubDate")%></td>--%>
	              <%--<td><%# Eval("adminID")%></td>--%>
	              <%--<td><%# Eval("ext1")%></td>--%>
	              <%--<td><%# Eval("ext2")%></td>--%>
	              <td>	
	                  <a href="?cmd=view&id=<%# Eval("id") %>" class="linkView" onclick="return openWin(this.href);">查看</a>&nbsp;
	                   <a href="?cmd=edit&id=<%# Eval("id") %>" class="linkEdit" onclick="return openWin(this.href);">修改</a>&nbsp;
	                   <a href="?cmd=delete&id=<%# Eval("id") %>" onclick="return confirm('确定是要删除该记录吗？')" class="linkDelete">删除</a>
	              </td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
           </table>
        </FooterTemplate>
    </asp:Repeater>

<!-- 信息列表结束 -->

<!-- 分页开始 -->
<div class="content" id="divPager" runat="server">
    <div class="page"><asp:Literal ID="litPager" runat="server" ></asp:Literal></div>
</div>
<!-- 分页结束 -->
</div>
<!-- 列表内容结束 -->


<!-- 表单开始 -->
<div class="tab" runat="server" id="divForm">
  <table cellpadding="0" cellspacing="0" class="btab">
	<tr> 
		<td  colspan="2" class="thead">  <asp:Label ID="lblFormTitle" runat="server" Text="修改"></asp:Label></td>
	</tr>
	<tr> 
		<th>商城id：</th>
		<td>  
            <asp:TextBox ID="txtShopid" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<th>标题：</th>
		<td>  
            <asp:TextBox ID="txtTitle" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<th>内容：</th>
		<td>  
            <asp:TextBox ID="txtContent" runat="server"  CssClass="clsInput" Height="100px" TextMode="MultiLine" Width="300px"  ></asp:TextBox></td>
	</tr>
	<tr> 
		<th>过期日期：</th>
		<td>  
            <asp:TextBox ID="txtExpiredDate" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<th>跳转链接：</th>
		<td>  
            <asp:TextBox ID="txtGotoUrl" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<th>发布日期：</th>
		<td>  
            <asp:TextBox ID="txtPubDate" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<th>发布人id：</th>
		<td>  
            <asp:TextBox ID="txtAdminID" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<th>扩展1：</th>
		<td>  
            <asp:TextBox ID="txtExt1" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<th>扩展2：</th>
		<td>  
            <asp:TextBox ID="txtExt2" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td colspan="2" align="center" style="font-size: 30px;">
         <asp:Button ID="btnSumit"  CssClass="btnSumit" runat="server" Text=" 发布 "  OnClick="btnSumit_Click" />
		<input class="btnCancel" type="reset" value=" 取消 " />
		<asp:TextBox ID="txtId" runat="server" style="display:none" Text="0"></asp:TextBox></td>
	</tr>
</table>
</div>
<!-- 表单结束 -->


<!-- 查看开始 -->
<div class="tab"  runat="server" id="divView">
  <table  cellpadding="0" cellspacing="0" class="btab">
	<tr> 
		<td colspan="2" class="thead">  <asp:Label ID="lblViewTitle" runat="server" Text="查看"></asp:Label></td>
	</tr>
	<tr> 
		<th>商城id：</th>
		<td>  
            <asp:Label ID="lblShopid" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<th>标题：</th>
		<td>  
            <asp:Label ID="lblTitle" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<th>内容：</th>
		<td>  
            <asp:Label ID="lblContent" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<th>过期日期：</th>
		<td>  
            <asp:Label ID="lblExpiredDate" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<th>跳转链接：</th>
		<td>  
            <asp:Label ID="lblGotoUrl" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<th>发布日期：</th>
		<td>  
            <asp:Label ID="lblPubDate" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<th>发布人id：</th>
		<td>  
            <asp:Label ID="lblAdminID" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<th>扩展1：</th>
		<td>  
            <asp:Label ID="lblExt1" runat="server" ></asp:Label></td>
	</tr>
	<tr> 
		<th>扩展2：</th>
		<td>  
            <asp:Label ID="lblExt2" runat="server" ></asp:Label></td>
	</tr>
</table>
</div>
<!-- 查看结束 -->


</div>
    </form>
</body>
</html>

